#ifndef M_BTN_H_
#define M_BTN_H_

#include "stm32f10x.h"

#define BTN1_ID 1
#define BTN1_PORT GPIOA
#define BTN1_PIN GPIO_Pin_15

#define BTN2_ID 2
#define BTN2_PORT GPIOB
#define BTN2_PIN GPIO_Pin_11

#define BTN3_ID 3
#define BTN3_PORT GPIOC
#define BTN3_PIN GPIO_Pin_14

#define BTN4_ID 4
#define BTN4_PORT GPIOC
#define BTN4_PIN GPIO_Pin_15

#define BTN5_ID 5
#define BTN5_PORT GPIOA
#define BTN5_PIN GPIO_Pin_6

#define BTN6_ID 6
#define BTN6_PORT GPIOA
#define BTN6_PIN GPIO_Pin_7

#define BTN7_ID 7
#define BTN7_PORT GPIOB
#define BTN7_PIN GPIO_Pin_0

#define BTN8_ID 8
#define BTN8_PORT GPIOB
#define BTN8_PIN GPIO_Pin_1

void btn_init(void);

#endif /*M_BTN_H_*/
